﻿using SqlSugar;

namespace WebApi.Models.Database.DbName
{
    /// <summary>
    /// account表实体
    /// </summary>
    [SugarTable("account_main")]
    public class AccountModel
    {
        /// <summary>
        /// Desc:自增主键
        /// Default:
        /// Nullable:False
        /// </summary>      
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// Desc:账号
        /// Default:
        /// Nullable:False
        /// </summary>  
        [SugarColumn(ColumnName = "account")]
        public string Account { get; set; } = string.Empty;

        /// <summary>
        /// Desc:姓名
        /// Default:
        /// Nullable:False
        /// </summary>      
        [SugarColumn(ColumnName = "name")]
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// Desc:密码
        /// Default:
        /// Nullable:False
        /// </summary>      
        [SugarColumn(ColumnName = "password")]
        public string Password { get; set; } = string.Empty;

        /// <summary>
        /// Desc:是否可用
        /// Default:
        /// Nullable:False
        /// </summary>
        [SugarColumn(ColumnName = "is_enable")]
        public int IsEnable { get; set; } = 1;

        /// <summary>
        /// Desc:创建时间
        /// Default:
        /// Nullable:False
        /// </summary>      
        [SugarColumn(ColumnName = "create_time")]
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
